projects
/
gtk+3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00559e1
)
win32: Move variable definition to not cause gcc warning
author
Benjamin Otte
<otte@redhat.com>
Sun, 21 Feb 2016 03:55:55 +0000
(
04:55
+0100)
committer
Benjamin Otte
<otte@redhat.com>
Sun, 21 Feb 2016 19:44:36 +0000
(20:44 +0100)
It's only used on win32, so only define it there.
gtk/gtkwin32theme.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwin32theme.c
b/gtk/gtkwin32theme.c
index 50d45635696df3010513050ecbcee6925582afe0..282c414ac26fea047ebd4fef9c56b02b900b75f9 100644
(file)
--- a/
gtk/gtkwin32theme.c
+++ b/
gtk/gtkwin32theme.c
@@
-480,12
+480,11
@@
int
gtk_win32_theme_get_size (GtkWin32Theme *theme,
int id)
{
- int size;
-
#ifdef G_OS_WIN32
if (use_xp_theme && GetThemeSysSize != NULL)
{
HTHEME htheme = gtk_win32_theme_get_htheme (theme);
+ int size;
/* If htheme is NULL it will just return the GetSystemMetrics value */
size = GetThemeSysSize (htheme, id);